/*
 * @Author: your name
 * @Date: 2021-06-17 09:43:31
 * @LastEditTime: 2021-06-17 10:48:17
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \EXPFinal\main.cpp
 */
#include <iostream>
#include "./src/CMyVector.hpp"
int main(int, char**) {

    CMyVector<int> vec(10);
    for(int i =0;i<20;i++)
    vec.pushBack(i);
    for(int i =0;i<20;i++)
    std::cout <<vec[i]<<endl;
       try
    {
    std::cout<<vec[30]<<endl;
    }
    catch(const std::exception& e)
    {
        std::cerr << e.what() << '\n';
    }
    
    return 0;
    
}
